<include file="Public:top" />

<script language="JavaScript">
<!--
var PUBLIC	 =	 '__PUBLIC__';
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	ThinkAjax.sendForm('form1','__URL__/checkLogin/',loginHandle,'result');
	}
}
function fleshVerify(){ 
	//重载验证码
	var timenow = new Date().getTime();
	$('verifyImg').src= '__URL__/verify/'+timenow;
}

function checkName(){
	ThinkAjax.send('__URL__/checkAccount/','ajax=1&user_name='+$F('user_name'));
}
//-->
</script>
<div id="main" class="main" >
	<div class="content">
		<div class="title">注册用户 [ <a href="__URL__/login">登录</a> ]</div>
		<table cellpadding=3 cellspacing=3>
		<form method='post' id="form1" action="__URL__/insert/" >
		<tr>
			<td class="tRight" >登录帐号：</td>
			<td class="tLeft" ><input type="text" class="medium bLeftRequire"  check='Require' warning="用户名不能为空" id="user_name" name="user_name" value="{$vo.user_name}"><input type="button" value="检测帐号" onclick="checkName()" class="submit hMargin"></td>
		</tr>
		<tr>
			<td class="tRight" >登录密码：</td>
			<td class="tLeft" ><input type="password" class="medium bLeft" name="password" value=""></td>
		</tr>
		<tr>
			<td class="tRight" >确认密码：</td>
			<td class="tLeft" ><input type="password" class="medium bLeft" name="repassword" value=""></td>
		</tr>
		<tr>
			<td class="tRight" >用户昵称：</td>
			<td class="tLeft" ><input type="text" class="medium bLeft" name="nick_name" value=""></td>
		</tr>
		<tr class="row">
	        <td class="tRight">
	            验证码：
	        </td>
	        <td>
	            <input type="text" onKeyDown="keydown(event)" class="small bLeftRequire"
	            check="Require" warning="请输入验证码" name="verify_reg">
	            <img id="verifyImg" SRC="__URL__/verify/" onClick="fleshVerify()" BORDER="0"
	            ALT="点击刷新验证码" style="cursor:pointer" align="absmiddle">
	        </td>
	    </tr>
		<tr>
			<td></td>
			<td class="center">
			<input type="submit" value="保 存" class="small submit">
			<input type="reset" class="submit  small" value="清 空" >
			</td>
		</tr>
		</table>
		</form>
	</div>
	<div class="sidebar">
		
	</div>
</div>
